<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "wei_gui".
 *
 * @property string $id
 * @property string $park_space1
 * @property string $park_space2
 * @property integer $park_space1_status
 * @property integer $park_space2_status
 * @property integer $status
 * @property integer $car_status
 * @property string $create_date
 * @property string $update_date
 * @property string $option
 */
class WeiGui extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'wei_gui';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'park_space1', 'park_space2'], 'required'],
            [['park_space1_status', 'park_space2_status', 'status', 'car_status'], 'integer'],
            [['create_date', 'update_date'], 'safe'],
            [['option'], 'string'],
            [['id', 'park_space1', 'park_space2'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '唯一标识',
            'park_space1' => 'park_space1标识',
            'park_space2' => 'park_space2标识',
            'park_space1_status' => 'park_space1状态',
            'park_space2_status' => 'park_space2状态',
            'status' => '状态',
            'car_status' => '车辆状态',
            'create_date' => '创建日期',
            'update_date' => '更新日期',
            'option' => '备用字段',
        ];
    }
}
